CC=g++
LFLAGS= -L../utility -lutility -L../hive_access -lnthive -Wall -shared -fPIC
CFLAGS= -Wall -c -g
SRC=sys_search.cpp reg_accessor.cpp windows_information.cpp windows_manager.cpp
OBJ=libwin_manager.so
TGT=$(SRC:.cpp=.o)

all: $(OBJ)

$(OBJ) : $(TGT)
	$(CC) -o $(OBJ) $^ $(LFLAGS)

$(TGT) : $(SRC)
	$(CC) $(CFLAGS) $(SRC)

clean:
	rm -f *.o $(OBJ) *~
